// SceneView.h : interface of the CSceneView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SCENEVIEW_H__372DCB4B_2822_4411_99C4_9DE0374AB64A__INCLUDED_)
#define AFX_SCENEVIEW_H__372DCB4B_2822_4411_99C4_9DE0374AB64A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CSceneView : public CScrollView
{
protected: // create from serialization only
	CSceneView();
	DECLARE_DYNCREATE(CSceneView)

// Attributes
public:
	CSceneDoc* GetDocument();

	typedef CSceneDoc::TOBJECT TOBJECT;
	typedef CSceneDoc::SPRITE SPRITE;
	typedef CSceneDoc::DIALOG DIALOG;
	typedef CSceneDoc::GROUP GROUP;

	TOBJECT*	m_pMap;
	TOBJECT*	m_pSelect;
	

protected:
	CBrush m_brBkgnd;
	CBrush m_brHatch;

	UINT	m_nTimer;
	
protected:
	BOOL	m_bDragging;
	CPoint	m_ptOffset;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSceneView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSceneView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSceneView)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SceneView.cpp
inline CSceneDoc* CSceneView::GetDocument()
   { return (CSceneDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SCENEVIEW_H__372DCB4B_2822_4411_99C4_9DE0374AB64A__INCLUDED_)
